import numpy as np

class Point(object):
    def __init__(self, index, x,y):
        self.index = index
        self.x = x
        self.y = y
    def distance(self, p2):
        return np.sqrt((p1.x - p2.x)**2 + (p1.y - p2.y)**2)

p1 = Point(1,1,1)
p2 = Point(0,0,0)
print(p1.distance(p2))
